void prompt(String text, {int count: 1}) {
  for (int i = 0; i < count; i++) {
    print(text);
  }
} //named parameters

void prompt2(String text, [int count]) {
  if (count == null) {
    count = 1;
  }
  for (int i = 0; i < count; i++) {
    print(text);
  }
} //positional parameters

main() {
  prompt("Your name:", count: 3);
  prompt("Your Cat:");

  prompt2("Your name2:", 3);
  prompt2("Your Cat2:");
}
//EOP
